import request from "@/utils/request";

// 分页获取主办会议列表
export function getmeetingList(query) {
  return request({
    url: "/achievement/meeting/list",
    method: "get",
    params: query,
  });
}

// 添加主办会议
export function getmeetingAdd(data) {
  return request({
    url: "​/achievement​/meeting/add",
    method: "post",
    data: data,
  });
}
// 修改主办会议
export function getmeetingUpdate(data) {
  return request({
    url: "/achievement/meeting/update",
    method: "put",
    data: data,
  });
}

// 删除主办会议
export function meetingDel(ids) {
  return request({
    url: "/achievement/meeting/del/" + ids,
    method: "delete",
  });
}

// 获取主办会议详情
export function getmeetingInfo(id) {
  return request({
    url: "/achievement/meeting/" + id,
    method: "get",
  });
}

// 分页获取学术讲座列表
export function getlectureList(query) {
  return request({
    url: "/achievement/lecture/list",
    method: "get",
    params: query,
  });
}

// 添加学术讲座
export function getlectureAdd(data) {
  return request({
    url: "​/achievement​/lecture/add",
    method: "post",
    data: data,
  });
}
// 修改学术讲座
export function getlectureUpdate(data) {
  return request({
    url: "/achievement/lecture/update",
    method: "put",
    data: data,
  });
}

// 删除学术讲座
export function lectureDel(ids) {
  return request({
    url: "/achievement/lecture/del/" + ids,
    method: "delete",
  });
}

// 获取学术讲座详情
export function getlectureInfo(id) {
  return request({
    url: "/achievement/lecture/" + id,
    method: "get",
  });
}

// 分页获取参加会议列表
export function getjoinMeetingList(query) {
  return request({
    url: "/achievement/joinMeeting/list",
    method: "get",
    params: query,
  });
}

// 添加参加会议
export function getjoinMeetingAdd(data) {
  return request({
    url: "​/achievement​/joinMeeting/add",
    method: "post",
    data: data,
  });
}
// 修改参加会议
export function getjoinMeetingUpdate(data) {
  return request({
    url: "/achievement/joinMeeting/update",
    method: "post",
    data: data,
  });
}

// 删除参加会议
export function joinMeetingDel(ids) {
  return request({
    url: "/achievement/joinMeeting/del/" + ids,
    method: "delete",
  });
}

// 获取参加会议详情
export function getjoinMeetingInfo(id) {
  return request({
    url: "/achievement/joinMeeting/" + id,
    method: "get",
  });
}

// 分页获取人员派遣列表
export function getpersonnelDispatchList(query) {
  return request({
    url: "/achievement/personnelDispatch/list",
    method: "get",
    params: query,
  });
}

// 添加人员派遣
export function getpersonnelDispatchAdd(data) {
  return request({
    url: "​/achievement​/personnelDispatch/add",
    method: "post",
    data: data,
  });
}
// 修改人员派遣
export function getpersonnelDispatchUpdate(data) {
  return request({
    url: "/achievement/personnelDispatch/update",
    method: "put",
    data: data,
  });
}

// 删除人员派遣
export function personnelDispatchDel(ids) {
  return request({
    url: "/achievement/personnelDispatch/del/" + ids,
    method: "delete",
  });
}

// 获取人员派遣详情
export function getpersonnelDispatchInfo(id) {
  return request({
    url: "/achievement/personnelDispatch/" + id,
    method: "get",
  });
}

// 分页获取人员接受列表
export function getpersonnelAcceptList(query) {
  return request({
    url: "/achievement/personnelAccept/list",
    method: "get",
    params: query,
  });
}

// 添加人员接受
export function getpersonnelAcceptAdd(data) {
  return request({
    url: "​/achievement​/personnelAccept/add",
    method: "post",
    data: data,
  });
}
// 修改人员接受
export function getpersonnelAcceptUpdate(data) {
  return request({
    url: "/achievement/personnelAccept/update",
    method: "put",
    data: data,
  });
}

// 删除人员接受
export function perpersonnelAcceptDel(ids) {
  return request({
    url: "/achievement/personnelAccept/del/" + ids,
    method: "delete",
  });
}

// 获取人员接受详情
export function getpersonnelAcceptInfo(id) {
  return request({
    url: "/achievement/personnelAccept/" + id,
    method: "get",
  });
}

// 获取主办会议状态列表
export function getmeetingListStatistics(query) {
  return request({
    url: "/achievement/meeting/list-statistics",
    method: "get",
    params: query,
  });
}

// 获取学术讲座状态列表
export function getlectureListStatistics(query) {
  return request({
    url: "/achievement/lecture/list-statistics",
    method: "get",
    params: query,
  });
}

// 获取参加会议状态列表
export function getjoinMeetingListStatistics(query) {
  return request({
    url: "/achievement/joinMeeting/list-statistics",
    method: "get",
    params: query,
  });
}

// 获取人员派遣状态列表
export function getpersonnelDispatchListStatistics(query) {
  return request({
    url: "/achievement/personnelDispatch/list-statistics",
    method: "get",
    params: query,
  });
}

// 获取人员接受状态列表
export function getpersonnelAcceptListStatistics(query) {
  return request({
    url: "/achievement/personnelAccept/list-statistics",
    method: "get",
    params: query,
  });
}
